package com.ctsi.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * 系统用户数据范围表实体类
 *
 * @version 1.0
 * @author: wang xiao xiang
 * @date: 2021/8/9 16:31
 */
@Data
@TableName("mars_sys_notice_user")
@ApiModel(value = "NoticeUser对象", description = "系统用户数据范围表")
@JsonIgnoreProperties(ignoreUnknown = true)
public class NoticeUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 通知公告id
     */
    @ApiModelProperty(value = "通知公告id")
    private Long noticeId;
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Long userId;
    /**
     * 状态（字典 0未读 1已读）
     */
    @ApiModelProperty(value = "状态（字典 0未读 1已读）")
    private Integer status;
    /**
     * 阅读时间
     */
    @ApiModelProperty(value = "阅读时间")
    private LocalDateTime readTime;


}
